//
//  MeatShopApi.h
//  PigMarket
//
//  Created by 张敬 on 2019/8/21.
//  Copyright © 2019年 pigmarket.oc. All rights reserved.
//

#import <Foundation/Foundation.h>

#import "ShopCreateParam.h"
#import "ShopSeparateParam.h"
#import "ShopMineSaleParam.h"
#import "ShopSalePromotionParam.h"
#import "ShopChagePriceParam.h"
#import "ShopSendComfirmParam.h"
#import "ShopSendListParam.h"
#import "ShopOrderSendParam.h"
#import "ShopOrderWholeParam.h"


#import "ShopSeparatePlanModel.h"
#import "PigTypeListModel.h"
#import "ShopSeparateDetailModel.h"
#import "ShopSeparateModel.h"
#import "ShopBookModel.h"
#import "ShopSaleDetailModel.h"
#import "ShopResetCameraModel.h"
#import "ShopOrderModel.h"
#import "ShopOrderFriendModel.h"





NS_ASSUME_NONNULL_BEGIN

@interface MeatShopApi : NSObject

+ (instancetype) sharedInstance;

#pragma mark - 创建店铺
- (RACSignal<PigTypeModel *> *)getShopCreateByParams:(ShopCreateParam *)parmas;

#pragma mark - 分割方案列表
- (RACSignal <ShopSeparatePlanModel *> *)getShopSeparatePlan;

#pragma mark - 分割方案详情
- (RACSignal <ShopSeparateDetailModel *> *)getShopSeparatePlanDetailByDivisionPlanId:(NSNumber *)divisionPlanId;

#pragma mark - 确认分割方案
- (RACSignal<PigTypeModel *> *)getShopSeparatePlanOkByShopId:(NSNumber *)shopId divisionPlanId:(NSNumber *)divisionPlanId;

#pragma mark - 分配方案（肉块分配）
- (RACSignal<ShopSeparateModel *> *)getShopSparateByParams:(ShopSeparateParam *)parmas;

#pragma mark - 预留或销售
- (RACSignal<PigTypeModel *> *)getShopSaveOrSaleByAdvanceSaleType:(NSNumber *)advanceSaleType advanceSaleId:(NSArray *)advanceSaleId;

#pragma mark - 我得肉铺
- (RACSignal<PigTypeModel *> *)getMyShopByTribeId:(NSNumber *)tribeId;

#pragma mark - 我得店铺销售
- (RACSignal<ShopSeparateModel *> *)getMyShopSaleByParams:(ShopMineSaleParam *)parmas;

#pragma mark - 我得店铺预留
- (RACSignal<ShopSeparateModel *> *)getMyShopSaveByParams:(ShopMineSaleParam *)parmas;

#pragma mark - 上下架与促销
- (RACSignal<NSNull *> *)getMyShopSalePromotionByParams:(ShopSalePromotionParam *)parmas;

#pragma mark - 上商品改价
- (RACSignal<NSNull *> *)getMyShopChagePriceByParams:(ShopChagePriceParam *)parmas;

#pragma mark - 店铺账本
- (RACSignal<ShopBookModel *> *)getMyShopBookByShopId:(NSNumber *)shopId;

#pragma mark - 销售明细
- (RACSignal<ShopSaleDetailModel *> *)getMyShopSaleDetailByShopId:(NSNumber *)shopId pigId:(NSNumber *)pigId sellStatus:(NSNumber *)sellStatus;

#pragma mark - 转让明细_未完成明细
- (RACSignal<PigTypeModel *> *)getMyTranferDetailNOByShopId:(NSNumber *)shopId pigId:(NSNumber *)pigId;

#pragma mark - 出售明细
- (RACSignal<PigTypeModel *> *)getMySaleDetailByShopId:(NSNumber *)shopId;

#pragma mark - 订单详情
- (RACSignal<PigTypeModel *> *)getMyOrderDetailByOrderId:(NSNumber *)goodsOrderId;

#pragma mark - 转让明细_已完成明细
- (RACSignal<PigTypeModel *> *)getMyTranferDetailFinishByShopId:(NSNumber *)shopId pigId:(NSNumber *)pigId;

#pragma mark - 转让管理
- (RACSignal<PigTypeModel *> *)getMyTranferManageByShopId:(NSNumber *)shopId pigId:(NSNumber *)pigId;

#pragma mark - 转让管理_改价
- (RACSignal<NSNull *> *)getMyTranferManageChagePriceByAssigShopId:(NSNumber *)assigShopId money:(NSNumber *)money;

#pragma mark - 转让管理_转让明细
- (RACSignal<PigTypeModel *> *)getMyTranferManageDetailByAssigShopId:(NSNumber *)assigShopId pigId:(NSNumber *)pigId;

#pragma mark - 预留_一键赠送
- (RACSignal<PigTypeModel *> *)getMyTranferSaveByAdvanceSaleType:(NSNumber *)advanceSaleType advanceSaleId:(NSArray *)advanceSaleId;

#pragma mark - 确认赠送
- (RACSignal<PigTypeModel *> *)getMyShopSendComfirmByParams:(ShopSendComfirmParam *)parmas;

#pragma mark - 赠送列表
- (RACSignal<PigTypeModel *> *)getMyShopSendListByParams:(ShopSendListParam *)parmas;

#pragma mark - 查看赠送
- (RACSignal<PigTypeModel *> *)getSendCheckByShopId:(NSNumber *)shopId goodsOrderId:(NSArray *)goodsOrderId;

#pragma mark - 撤回赠送
- (RACSignal<NSNull *> *)getSendCallBackByGoodsOrderId:(NSNumber *)goodsOrderId;

#pragma mark - 一键发单
- (RACSignal<PigTypeModel *> *)getMyOrderSendByParams:(ShopOrderSendParam *)parmas;

#pragma mark - 全部订单
- (RACSignal<PigTypeModel *> *)getMyOrderWholeByParams:(ShopOrderWholeParam *)parmas;

#pragma mark - 全部订单_设置购买人观看权限
- (RACSignal<ShopResetCameraModel *> *)getShopResetByPigId:(NSNumber *)pigId;

#pragma mark - 预定订单复制
- (RACSignal <ShopOrderCopyModel *> *)getOrderCopyByPigId:(NSNumber *)pigId;

#pragma mark - 买家申请更换收货地址.
- (RACSignal<PigTypeModel *> *)getShopChangeLocationByGoodsOrderId:(NSNumber *)goodsOrderId receiveAddress:(NSString *)receiveAddress;

#pragma mark - 冷链物流
- (RACSignal <NSNull *> *)getColdLogisticsByGoodsOrderId:(NSNumber *)goodsOrderId;

#pragma mark - 好友发单
- (RACSignal <ShopOrderFriendModel *> *)getOrderByShopId:(NSNumber *)shopId;


@end

NS_ASSUME_NONNULL_END
